<template>
	<view class="mainpadding2">
		<view class="tupbox dingwei margin_top" v-for="item in list" :key="item.id" @click="tzxq(item.id)">
			<image :src="item.bg_image_text" mode=""></image>
			<!-- <view class="nkbtn weizhi">年卡会员</view> -->
			<view class="nzti zitiwz">{{item.name}}</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad(options) {
			this.init()
		},
		methods: {
			init() {
				let _this = this;
				httpRequest.request("/api/ptcard/ptCardIndex", 'GET', {
				}, false, false, true).then(res => {
					this.list = res.data
				})
			},
			// 跳转详情
			tzxq(id) {
				uni.navigateTo({
					url: '/pages_mypage/huiyuanzx?id='+id
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.ckzi {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #576E8B;
	}

	.ykzt {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #DC9253;
	}

	.jkzt {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #E8A10C;
	}

	.zitiwz {
		position: absolute;
		top: 90rpx;
		left: 190rpx;
	}

	.ckbtn {
		background-color: #A1BCDE;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.nzti {
		font-size: 44rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #F5E1B5;
	}

	.ykbtn {
		background-color: #F9C99E;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #F2892E;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.jkbtn {
		background-color: #FFE8C0;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #F8890A;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.nkbtn {
		background-color: #D3B47D;
		border-radius: 0 30rpx 30rpx 0;
		font-size: 26rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #2D2113;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 140rpx;
		height: 50rpx;
	}

	.weizhi {
		position: absolute;
		top: 30rpx;
		left: 0;
	}

	.tupbox {
		width: 100%;
		height: 240rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>